package com.bayair.doctor.ui.main;

import android.util.ArrayMap;

import com.bayair.doctor.data.bean.Token;
import com.bayair.doctor.mvp.IModel;
import com.bayair.doctor.net.BaseEntity;
import com.bayair.doctor.biz.helper.SpDoctor;

import io.reactivex.Observable;

public class MainModel extends IModel implements MainContract.Model {

    @Override
        public Observable<BaseEntity<Token>> flushToken() {
        ArrayMap<String, String> map = new ArrayMap<>();
        map.put("token", SpDoctor.getToken());
        return mApi.getToken(map);
    }
}
